package sk.naive.talker;

import java.util.*;

/**
 * ReloadableResources.
 * @author <a href="mailto:virgo@naive.deepblue.sk">Richard "Virgo" Richter</a>
 * @version $Revision: 1.1 $ $Date: 2004/02/02 22:52:32 $
 */
public class ReloadableResources {
	public static final String TPROP_RELOAD_HELPER = "reloadHelper";

	private Set reloadables = new HashSet();

	public void add(Reloadable resource) {
		reloadables.add(resource);
	}

	public void reload() {
		for (Iterator i = reloadables.iterator(); i.hasNext(); ) {
			((Reloadable) i.next()).reload();
		}
	}
}
